package com.zhongchaowuye.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.zhongchaowuye.dao.B_PD_MDao;
import com.zhongchaowuye.pojo.B_PD_M;
import com.zhongchaowuye.service.B_PD_MService;

@Transactional
@Service("b_PD_MService")
public class B_PD_MServiceImpl implements B_PD_MService
{
	@Resource
	B_PD_MDao b_PD_MDao;
	
	@Override
	public int insertB_PD_M(B_PD_M b_PD_M) {
		// TODO Auto-generated method stub
		return b_PD_MDao.insertB_PD_M(b_PD_M);
	}

	@Override
	public int updateB_PD_M(B_PD_M b_PD_M) {
		// TODO Auto-generated method stub
		return b_PD_MDao.updateB_PD_M(b_PD_M);
	}

	@Override
	public int delB_PD_M(B_PD_M b_PD_M) {
		// TODO Auto-generated method stub
		return b_PD_MDao.delB_PD_M(b_PD_M);
	}
	
	@Override
	public B_PD_M getB_PD_M(B_PD_M b_PD_M) {
		// TODO Auto-generated method stub
		return b_PD_MDao.getB_PD_M(b_PD_M);
	}
	
	@Override
	public List<Map<String, Object>> getB_PD_MList(B_PD_M b_PD_M) {
		// TODO Auto-generated method stub
		PageHelper.startPage(b_PD_M.getPageIndex(),b_PD_M.getPageSize(),true);
		return b_PD_MDao.getB_PD_MList(b_PD_M);
	}
}
